package com.book.entity;



import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("bs_notify")
/**
 * 公告表
 */
public class Notify {
    /**
     * 公告表id
     */
    @TableField(value = "notify_id")
    private Integer notifyId;

    /**
     * 标题
     */
    @TableField(value = "notify_title")
    private String  notifyTitle;

    /**
     * 内容
     */
    @TableField(value = "notify_context")
    private String  notifyContext;

    /**
     * 发布时间
     */
    @TableField(value = "notify_createDate")
    @DateTimeFormat(pattern = "yyy-MM-dd")
    private Date  notifyCreateDate;

}